#!/bin/sh
# trash.sh - move file(s) to trash bin
# Copyright (c) 2011 Rudá Moura <ruda.moura@gmail.com>

TRASH=$HOME/.Trash

if [ "$1" = "" ] ; then
    echo "$0: move file(s) to trash bin ($TRASH)"
    echo "Usage: $0 [files]"
    exit 1
fi

if [ -d $TRASH ] ; then
    mv "$@" $TRASH
else
    echo "$0: error: Trash bin $TRASH not created"
    exit 1
fi
